package com.googlecode.mylyn.core;

import static org.junit.Assert.*;

import org.junit.Test;

public class GoogleCodeRepositoryConnectorTest {

    @Test
    public void testGetTaskUrl() {
        GoogleCodeRepositoryConnector connector = new GoogleCodeRepositoryConnector();
        String taskUrl = connector.getTaskUrl("http://code.google.com/p/googlecode-mylyn-connector/", "1");
        assertEquals("http://code.google.com/p/googlecode-mylyn-connector/issues/detail?id=1", taskUrl);
    }


    @Test
    public void testGetTaskUrlAffiliate() {
        GoogleCodeRepositoryConnector connector = new GoogleCodeRepositoryConnector();
        String taskUrl = connector.getTaskUrl("http://code.google.com/a/eclipselabs.org/p/workspacemechanic/", "1");
        assertEquals("http://code.google.com/a/eclipselabs.org/p/workspacemechanic/issues/detail?id=1", taskUrl);
    }
}
